import AlarmPlatfromPage from '../pages/AlarmPlatform/index.jsx';
import Datasource from '../pages/Datasource/index.jsx';
import IndexPage from "../pages/Home";
import LoginPage from '../pages/Login/index.jsx';
import RulePage from "../pages/Rule/index.jsx";

const routes = [

  {
    path: "/",
    key: "/",
    name: '首页',
    component: <IndexPage />,
  },
  {
    path: "/login",
    key: "/login",
    name: "登录页",
    isHidden: true,
    component: <LoginPage />
  },
  {
    path: "/rule",
    key: "/rule",
    name: '规则管理',
    component: <RulePage />,
  },
  {
    path: "/datasource",
    key: "/datasource",
    name: '数据源管理',
    component: <Datasource />,
  },
  {
    path: "/alarmPlatform",
    key: "/alarmPlatform",
    name: '渠道（群）管理',
    component: <AlarmPlatfromPage />,
  },

  // ...
];

export default routes;
